<%--
  Created by IntelliJ IDEA.
  User: 我爱陈果果
  Date: 2020/8/17
  Time: 10:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--导入标签和访问路径--%>
<%@ include file="../_linkPages/basePath.jsp"%>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta charset="utf-8" />
    <title>修改品种信息</title>
    <%--导入头部的样式和脚本--%>
    <%@ include file="../_linkPages/staticHeader.jsp"%>
    <%--css--%>
    <link rel="stylesheet" href="assets/css/bootstrap.min.css" />
    <link rel="stylesheet" href="assets/css/font-awesome.min.css" />

    <link rel="stylesheet" href="assets/css/jquery-ui.custom.min.css" />
    <link rel="stylesheet" href="assets/css/chosen.css" />
    <link rel="stylesheet" href="assets/css/datepicker.css" />
    <link rel="stylesheet" href="assets/css/bootstrap-timepicker.css" />
    <link rel="stylesheet" href="assets/css/daterangepicker.css" />
    <link rel="stylesheet" href="assets/css/bootstrap-datetimepicker.css" />
    <link rel="stylesheet" href="assets/css/colorpicker.css" />

    <link rel="stylesheet" href="assets/css/ace-fonts.css" />
    <link rel="stylesheet" href="assets/css/ace.min.css" id="main-ace-style" />

    <script src="assets/js/ace-extra.min.js"></script>
</head>

<body class="no-skin">
<!-- #section:basics/navbar.layout -->
<div id="navbar" class="navbar navbar-default">

    <div class="navbar-container" id="navbar-container">
        <button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler">
            <span class="icon-bar"></span>

            <span class="icon-bar"></span>

            <span class="icon-bar"></span>
        </button>

        <div class="navbar-header pull-left">
            <!-- #section:basics/navbar.layout.brand -->
            <a href="index.html" class="navbar-brand">
                <small>
                    <img src="assets/avatars/logo.png" alt="" />
                </small>
            </a>
        </div>

        <!-- #section:basics/navbar.dropdown -->
        <div class="navbar-buttons navbar-header pull-right" role="navigation">
            <%--右边个人信息部分--%>
            <%@ include file="../_linkPages/rightBar.jsp"%>
        </div>

        <!-- /section:basics/navbar.dropdown -->
    </div><!-- /.navbar-container -->
</div>

<!-- /section:basics/navbar.layout -->
<div class="main-container" id="main-container">

    <div id="sidebar" class="sidebar responsive">
        <%--左边导航栏--%>
        <%@ include file="../_linkPages/leftBar.jsp"%>
    </div>

    <!-- /section:basics/sidebar -->
    <div class="main-content">
        <div class="breadcrumbs" id="breadcrumbs">
            <ul class="breadcrumb">
                <li>
                    <i class="ace-icon fa fa-home home-icon"></i>
                    <a href="${basePath}user?method=toIndex">首页</a>
                </li>
                <li>
                    <a href="javascript:void(0)">猫咪管理</a>
                </li>
                <li>
                    <a href="javascript:;">修改品种信息</a>
                </li>
            </ul><!-- /.breadcrumb -->

        </div>

        <!-- /section:basics/content.breadcrumbs -->
        <div class="page-content">

            <div class="page-content-area">

                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <form class="form-horizontal" action="${basePath}knowledge" method="post" enctype="multipart/form-data" role="form">
                            <!-- #section:elements.form -->
                            <input type="hidden" name="method" value="update"/>
                            <input type="hidden" name="title" value="${Knowledge.title}"/>
                            <input type="hidden" name="time" value="${Knowledge.time}"/>
                            <input type="hidden" name="browse" value="${Knowledge.browse}"/>

                            <div class="form-group">
                                <label class="col-sm-3 control-label no-padding-right" for="form-field-2">内容：</label>

                                <div class="col-sm-9">
                                    <input type="text" value="${Knowledge.content}" name="content" id="form-field-2" placeholder="输入内容" class="col-xs-10 col-sm-5" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label no-padding-right">原头像1：</label>

                                <div class="col-sm-9">
                                    <img height="100px" src="${basePath}knowledge?method=showPic&pic=${Knowledge.pic}"/>
                                    <%--原头像传递过去--%>
                                    <input name="pic" type="hidden" value="${Knowledge.pic}"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label no-padding-right">新头像1：</label>

                                <div class="col-sm-9">
                                    <input type="file" name="newPic1"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label no-padding-right">原头像2：</label>

                                <div class="col-sm-9">
                                    <img height="100px" src="${basePath}knowledge?method=showPic&pic=${Knowledge.picture}"/>
                                    <%--原头像传递过去--%>
                                    <input name="pic" type="hidden" value="${Knowledge.picture}"/>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label no-padding-right">新头像2：</label>

                                <div class="col-sm-9">
                                    <input type="file" name="newPic2"/>
                                </div>
                            </div>

                            <div class="clearfix form-actions">
                                <div class="col-md-offset-3 col-md-9">
                                    <button class="btn btn-info" type="submit">
                                        <i class="ace-icon fa fa-check bigger-110"></i>
                                        立即提交
                                    </button>

                                    <button class="btn" type="reset">
                                        <i class="ace-icon fa fa-undo bigger-110"></i>
                                        重置
                                    </button>
                                </div>
                            </div>

                        </form>

                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content-area -->
        </div><!-- /.page-content -->
    </div><!-- /.main-content -->

    <div class="footer">
        <%@ include file="../_linkPages/footer.jsp"%>
    </div>

    <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
        <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
    </a>
</div><!-- /.main-container -->

<%--js--%>
<script type="text/javascript"> ace.vars['base'] = '..'; </script>
<script src="assets/js/ace/elements.onpage-help.js"></script>
<script src="assets/js/ace/ace.onpage-help.js"></script>
<link rel="stylesheet" href="assets/css/ace.onpage-help.css" />

<!-- ace scripts -->
<script src="assets/js/ace-elements.min.js"></script>
<script src="assets/js/ace.min.js"></script>

<script src="assets/js/jquery-ui.custom.min.js"></script>
<script src="assets/js/jquery.ui.touch-punch.min.js"></script>
<script src="assets/js/chosen.jquery.min.js"></script>
<script src="assets/js/fuelux/fuelux.spinner.min.js"></script>
<script src="assets/js/date-time/bootstrap-datepicker.min.js"></script>
<script src="assets/js/date-time/bootstrap-timepicker.min.js"></script>
<script src="assets/js/date-time/moment.min.js"></script>
<script src="assets/js/date-time/daterangepicker.min.js"></script>
<script src="assets/js/date-time/bootstrap-datetimepicker.min.js"></script>
<script src="assets/js/bootstrap-colorpicker.min.js"></script>
<script src="assets/js/jquery.knob.min.js"></script>
<script src="assets/js/jquery.autosize.min.js"></script>
<script src="assets/js/jquery.inputlimiter.1.3.1.min.js"></script>
<script src="assets/js/jquery.maskedinput.min.js"></script>
<script src="assets/js/bootstrap-tag.min.js"></script>
<script src="assets/js/typeahead.jquery.min.js"></script>

<script src="assets/js/bootstrap.min.js"></script>

</body>
</html>

